package com.et.launch.push

import android.util.Log
import com.et.logger.TAGS
import org.junit.Test

class MessageCenterTest {

    @Test
    fun distribute() {
        Log.d(TAGS.vending, "Test Push Message Distribute")
        val j2 = "{'flag':0, 'type':'02'}"
        MessageCenter.distribute(j2)
        val j3 = "{'flag':0, 'type':'03'}"
        MessageCenter.distribute(j3)
        val j4 = "{'flag':0, 'type':'04'}"
        MessageCenter.distribute(j4)
        val j5 = "{'flag':0, 'type':'05'}"
        MessageCenter.distribute(j5)
        val j9 = "{'flag':0, 'type':'09'}"
        MessageCenter.distribute(j9)

        val log = "{\"date\":\"2021-08-10\",\"password\":\"yichu123\",\"port\":\"21\",\"host\":\"120.27.28.226\",\"avm\":\"10000000\",\"time\":\"20210810160739\",\"remoteFolderPath\":\"logs\",\"type\":\"07\",\"username\":\"etftp\"}"
        MessageCenter.distribute(log)
    }
}